﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using JoyTalq.Core.Common;
using JoyTalq.Core.Common.Service;

namespace JoyTalq.Core.Business.Test.Service
{
    [TestFixture]
    public class TestCommonService
    {
        public CommonFactory CommonFactory { get; set; }
        public ICommonService CommonService { get; set; }

        [TestFixtureSetUp]
        public void TestCaseInit()
        {
            CommonFactory = new CommonFactory();
            CommonService = CommonFactory.GetCommonService();
        }

        [Test]
        public void Test_001_CreateSer_Code_And_Num()
        {
            string code = "bu";
            int numLength = 8;

            string serial = CommonService.CreateSer_Code_And_Num(code, numLength);

            Console.WriteLine("serial = " + serial);
        }

        
    }
}
